add_test() has different behaviour for VS and Ninja generator

See also this thread: CTest build-and-test with multi-config generators