tests: move tests requiring external packages to own subdirectories