Fixes #5526 fixed unit test leaving behind entity