Update test.js

adding support for scope & scenario