Remove erroneous cmake dependency and correct test to use proper paths.