Adding final keywords, corrected typo and added test case for double
outgoing slash as suggested.