Fix jshint.
Trim test file.
Use caperjs 1.1 testing format.