getting ready for npm
whitespace
extract tests
wrap object literals with () so they're evalid