Define and use HTTP validation utility functions in test suite