added the test for compact and also added package json

added chai test to brodash