fixed syntax and other erros preventing the rake tests from running smoothly.