add factory and test for instance_hwp
add tests for provider selection and cost strategy