test helpers for checking if items are in a list and moved from calling equals to assertEquals