Add unittest for pod validation.