Update FunctionsTest.java

Added test for valid characters, in this case parentheses.