testing entity code