Fix tests in ncm-authconfig.

The complicated sleep path is only executed if the restart fails.
Merge pull request #199 from piojo/fix-authconfig-tests

Fix tests in ncm-authconfig.