More application tests and debug tracing.