added test to test error->throw with arguments as a hash