move lib/test sources to separate directories