Created helper functions for integration tests.