add tox.ini
fixed the serializer.to_json() test