tests: Replaced ctest by self-made python script