Added password generator tests and fixed implementation.

This implementation isn't very impressive.  Find a new one.

AFDP-112