Added unit test of curdir().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>