FIX: object x not found error in testApp

The following error is raised when running runApp(): "Error in eval(expr, envir, enclos) : object 'x' not found"

This pull request fixes that error assigning an initial value to 'x'.