Add some test cases

Signed-off-by: Geoff Lane <geoff@zorched.net>