Tested the null conditon and command check.