Enhancing tests.

Hi,

Here is a commit to complement the tests. I wanted to do this as I am currently adding a new significant feature and it is modifying code a bit everywhere :).

I will commit this new feature later. But for the moment I thought I could already push the test cases I made for the existing features.


Cheers,
Axel