New test suite and lots more
improved testing
database connection
Merge pull request #1 from annttu/master

Some changes.