fixed unit test and added a new one for moto brand missing