Fixed bug in test-bed application.