add new version of layer->data spec in spec.coffee

- this is probably the better location for it
- also separate spec from parser test (moved to spec.coffee)
- modify some of the spec tests (still WIP)
fix stats & other problems uncovered by test case