first pass at some unit tests, still not working