refactor specs to use current ruby hash syntax with keys as symbols