Add unittests to test PullPolicy.