add discovery service test
fix traits for anonymous objects
comment