Added unit test for Hydra::AccessControls::Permission#to_hash.