Add tests for purchase request repo