almost finished with testing
finishes tests for last function