added tests for word controller