Like Rails' assert_difference, but more powerful