tests for fences positions validation logic