Fixed error in main.f90 and refactored spatial_solver test folder