Unit tests

Hi,

I added some unit tests. All unit tests succeeded.