Turn Metatest into a standalone library