optimize test for controller contract