removes System.out.println from tests and supresses unchecked type conversion warning.