removed obsolete code; optimized filtering; fixed test status reset