The tests need to be run from appveyor-test.bat and not the main appveyor.bat itself with the current approach, so move ctest invocation there.
Launch the tests after building them.