test both NSLog and printf in console capture tests