adds tests to string statements and comparing word arrays