Added unit tests around the library.