FIX: test error and position error