Updated snapshot JS unit-test