fixed bug in tile test