[nim] Modularising models tests and test helper scripts
[nim] Wrote first test for api