actually finish the test for get_rawxz_url
improve test for consume function and actually add assertion