Use read() instead of scanf for string inputs in test-app

No match.