support bytecode-only libraries in tests