simplify test by using DeepEquals