Add a test for building from batch options.