more tests and interface matching json