Fix JS unit test after attachment changes