finished tests for each function
finished , added comments and 10 tests in total