Linkage error when running the tests