tidied up pbslib testing framework. changed listcomp in "extract data report" in util to map function.