added test for json
add mock file
stabilize tests