Added selftest script