add test case in tinymoe and fixed catch statement