Fixup analysis module
Add unit tests for test database
Add spell unit test and fix bugs
Merge branch 'develop'