Add tests
Update to the latest upstream date.c
0.2.1