Move tests to subpackage. Fix link discovery