Closes #334. Using factory methods for data creation in search integration tests.