Added position test and brain debug test

Position test checks that the get position in direction method works as
intended.

Brain debug test parses a brain file and gives verbose error messages to
allow easier debugging of brain file whilst writing them.