Create purchase request class with tests