api/auth/password_test: refactor monolithic test into smaller tests with closures