Start of some pytest tests

I'd like to ad more soon, but this is a start.