Added unit tests to some of unit_tests.h functionality