fixed compiler issue with test cases