Added some testcases
extended entitymanager