in tests, only change directories before check, otherwise just use path explicitly