add helper method for model valid/invalid test

Extra blank line detected.