Fix minitest test

- parent class
- use json gem