Added kryo-serializer and simple test

Related to issue #610.