fix problems in the selftest
2 files changed