Added tests for isUpper and updated the code in the library