Magudumana to return to court amid claim that she is detained illegally