Add library and test file