Many tests failed on non-windows machine

Regarding to bug issue #645.  7 out of 15 failing specs are fixed.