Added alarm api tests