Full tests for the Cell class. Removed some bugs in the Cell class.