Added test test_get_all and added helper method check_keys