made own test to cater for subclass entity