some refactoring for orders controller spec