moved testlib up to lib