Fixed issue with test code