Test for various entity graph issues