added controller mock unit test