Added Test cases for entity without id