Wrote docstring for _has_key function.
Added test for _has_key function.
Added test for sanity_check_data function.