Add tests for 'new' command.