Tests on custom entities