Fixed issue with empty data in Entity model.
Added tests for ItemData model.