First unit tests for database creation and write