Test deprecated as_hash method