fix failing tests: local specs may refer to imported modules