testing scope in the controller