add tests for some things related to the cost strategy