Added unit testing for Grid Model.