AN: Moved stubbing/mocking methods into Object namespace
AN: Moved symbolise_keys into Hash class.
Changed raise to fail and made method more readable