Fixed tests to call build() properly.