Implement builder pattern for tests.