robot test complete but bug in code