added tests for attribute and entity