added debugging output for troubleshooting tests