Added Test for db-layer