Add library and associated test file