Unit tests

PJZL/firesquare#5