tests: move libcomps test to a separate test file.