Moved unit tests to its own library