issue 1216: added functional test file