code refactoring
fix versioned password test with bcrypt impl