Fixed MapCommandTest to make it headless