some unit tests

Just thought I'd start things rolling with some tests for some of the simpler interactions.