More tests.
Add yet another test
Doesn't crash on invalid info.
Saner way of calculationg granulepos.