added tests for passwords in database