Add more tests

This simply adds more tests to the lib/ subfolder.