Move test for compact into collections.js, add a test to ensure it works to remove falsy values from an object.