Added Mathematical test cases

added mathematical expression to test and used <code> validator.validate(string);</code> and created separate <code> isFormatted(boolean valid, String string) </code> method