turn costs api changes, adding unit tests