added test for _.compact that works on object