Refactoring of test.js
Add test for tasks implicitly bounded to disposed domains.