Implemented #885
Unit test
Merge pull request #921 from sjinks/issue-885

[NFR] Make Model::getMessages() filterable