update test to use builder pattern