Fixed bugs in the controller test added comments to classes