Split library and tests