Added unit tests

Output from adding 3 unit tests for each function.