Fix code identation in HashObject spec.
Extract HashObject into own file.