topk shared lib and test file