test bson data as parameter