Fixed failing createPath test

There was a misnamed variable, incorrect expect, and outdated calling
style