Move tests to module subdirectory