join some redundant test code