fix tests that were using a bad mode

This fixes test for node v0.10.0 where octal notation is deprecated.

We also use a hash for {mode:} because thats what the API says.