added json schema in companionfile and few tests