(feat) updated tests and added support for deeply nested hashes