test code for agility.js