Add a few extra test cases for has().exactly() and fix some style issues.