refactor tests using self defined matcher