slightly tweaked tests for analysis2.js