Changed relative_of_cwd variable name
Added tests for relative_of_cwd function