Added tests for 4 private functions. Now 100% coverage