coordinates check added to tests