Fixed QUnit tests

Resolves #875.

http://jenkins.buttonweavers.com:8080/job/buttonmen-AdmiralJota/98/