added ids_to_handles method
added ids_to_handles method
added ids_to_handles method
added tests for ids_to_handles method