add factory and test for instance_hwp
add tests for provider selection and cost strategy
Merge pull request #399 from martinpovolny/provider-tests2

add tests for some things related to the cost strategy