updated test API for integration tests