ci: Migrate tracie tests done in shell script to pytest