Add tests for typed database.