HAMA-681: add test case for output method