Break megatest into module and top file.