add content type resolver factory
fix path of test library