adding tests and getTile implementation