Restart browser each test to avoid firefox crash
Fix build on OpenJDK7