Added unit tests for DirState and compute_diff.