added countermeasure unittests