Added flush() calls and MockDatabase calls to fix AlarmdTest.
Fixed some spelling errors.
Added missing @Transactional to some unit tests.