added option --testlast