use FindBin to find testlib
throw error if error handling method is missing