In specs, capture stdout and stderr separately

Replace #with_output_to with #capture_output, which
sets the @stdout and @stderr instance vars

Change-Id: Ie2d0a336872a4510db4198117267ee6e3d86f634
Check login first when creating users

Change-Id: If2a9d270eceefe9003512098b0d0bba0715865fb