Quick fix for unit tests
Fix issues 43 - error 500 on /api/sync