* checking if backend is available during status call, and added a flag to wait if backend is not available * added test for status command (does not cover the whole code)