first unit test (upper_dir function)