Replace test directory with spec directory.