added base class for controllers
added test controller