Reimplemented test_magic_completion_order in test_completer.py