simplify 'if' in test
Merge pull request #17 from otaviojava/simplify-if

simplify 'if' in test