bug fix
self-test module