Fixed, improved and extended the karma-base controller test.