a few tests compatibility fixes for web libs