update tests with json and more erb validation