test: added unit tests for utils.compileETag to cover valid and invalid inputs (#6534)