Added unit test for passwordCheckDirective.js.