Update collection_test.js

Use already declared `trim` on line 14.