added object tests
fixed custom json serializer and added object tests