Adding UT for flow programming failures.
Adding validation for flow not being short flow before ksync response,
and gets converted to short flow after receiving error.
replacing usleep with WAIT_FOR in previous commit.
Merge pull request #298 from Juniper/psethi_controller

Adding UT for flow programming failures.