Use TypeFactory to convert types.
Add a test in it. Otherwise it failed and said there is not tests found.
Add the test code for v1 api.