test: Add test for the 'build' command to main.js