modified CannonTest class