Added checking to 'test' command in test_dict.