Patch API test also had hard-coded sys path

Same as issue #3