Added controller unittests