Fixed gender recognition, tests added.