write helper test source code to be sourced by multiple test files. #133
add some more test cases. #133