New structure of tests

Replaced the single-module tests.py to a tests package.
=> Simplifies the writing of new tests
Added tests from jsonclass

- Check de/serialization of various types
- TODO: add support for inherited types using __slots__