Added unit tests on cell.jl and rewrote part of cell.jl for it