Added tests for dbstructure