added calapps controller test code, not working yet