TESTS: resolve issue with dylib tests when run with encapped compiler