Fix most specs and improve the testing environment

Line is too long. [94/80]<br>Surrounding space missing for operator '=>'.<br>Space inside { missing.<br>Space inside } missing.