add unit test for \OC\URLGenerator::getAbsoluteURL

add unit test for \OC\URLGenerator::getAbsoluteURL to verify #6935 

cc @DeepDiver1975 @PVince81 @tanghus