Adds tests for robots + some bugfixes.