make test distance optional in serializer