Parse in module

Don't review yet.
anyway, let's not dwell on this. @radumereuta, are you ok with moving this to `src/test`?