use unittest setUp method to avoid redundancy
refactor tests
add contents_of testcase
implement contents_of