Made a utility method for isAbsolutePath. Better checking
Added tests for checking isAbsolutePath