fix for scoped modules
fix tests on linux.