Fix for test command in test plugin null exception