refactoring test methods to use submitRequest helper method