Selft test now only exits after testdb database successfully connected