added test for issue 146. Refs #146