Added g_object_ref()s and har-cache-test