working test.js with samples from the last minute