Fixed some errors in some tests