Added tests for generic cells

- Fixed a few minor bugs in the cells code
Fixed an animation test that would occasionally fail