Check position in tests

Unittest update as requested in #443