Update test.js

The named params functionality fails when the last brace on the identifier is followed by a non-alphanumeric character.