Group POST test, validation and refactoring