added the test for compact and also added package json
Merge pull request #1 from alexconway808/master

added the test for compact and also added package json