issue with integration test, record not found error