use matchers instead of hard coded values in unit test.