Stub jquery.extend and test that it is being used for deep copy
Improve stubbing and add more tests
Add moveToSafePosition tests
Reduce code duplication by using do-while loop
Add tests for gridnode initialization and behaviour of the enter method