Added tests for getPhoneStateCommand