Updated test documentation.
Added tests for the database.