Add unit test for bug MODELLO-267

See: http://jira.codehaus.org/browse/MODELLO-267