Working tests uing json. Nice