added some new tests for checkPosition.