Closes #100 (closed).
The test is a shorter version of the original script focusing only on what was giving trouble.