fixed unittests and added first mock objects for controller context