Moved tests to sub-package and split them into separate modules.