test for thread.pm