The examples directory has some tests, but they are not in the normal test format. Update the core library to add some unit tests