Fixes test by using assertARRAYequals