Sample practices for writing test codes