Added Test for Database Entity