Fixed nullpointer when Animation has no frames.
Added further tests to EntityTest