Add test file for lib