Added alarm check test code