added test code capability