Optimize nagging.js integration test

Attempted to optimize the script to produce more consistent results.