Add unit tests

As discussed on IRC, here are some tests written with atoum. 
I will continue to cover Pickle source code.