Wrote unit tests for GridModel and added assert statements to GridModel's methods.