improve test coverage for the builder