build: move test files to src/__tests__
in packages
#2330
Merged
src/__tests__
in packages
#2330