Added unit test coverage

Every flag is now covered by unit tests with one exception :
I can't find a reliable way to test encoding with Python 2 and 3
under Linux and Windows. It does work manually though.

Tests run under Ubuntu 64 bits with Python 2.7 and Python 3.4 as
well as Windows 7 with Python 2.7 and Python 3.4