added a test, refs #402