Fix spec syntax errors (missing it do end) and update change keys method to a_values