-added test code