Fixed tests and logging in profile app to suppress console output