Fix bug in statement test