testing each method