Fixed and refactored an issue in the build command. Added incomplete build command tests. Added command name test for all commands.