fix scrub test on java7