WebComment: Add & amend tests, fix SQL statement