Added tests for EntityManager

Hi, again. Decided to give the tests a try. I'm not the most experienced dev., but give me ping if there is anything specific you'ld like me to help out with. I'll be using this lib quite a bit, so I'm more than happy to put in a few hours now and then.