deconstructor: check for frontier before length
package: add mocha as dependency
0.8.4