Added 'waitFor' to DSL.

Replaced sleep() with waitFor()
Added tests for auth service