Fix bug in alarm edit tests
Fix database tests
Fix picker tests