Fix bosco_test.js

Fix bosco_test.js to be more general.