Convert tests to json metadata