Test of the flavour independence of $\alpha_s$ using next-to-leading order calculations for heavy quarks