Added a parametrized test 'selftest'