Wrote tests to check each method and input and output