WIP
Write spectest to file