Add tests for E731, issue #277