Turned cuda tests into usable modules