now works for assertions with more complicated arguments