Test password checking