changing path asserts to use canonical paths

after changing the model to only use canonical paths we need to assert
against canonical paths so tests past if /tmp/... is a symlink