Generalise assembly tests to not rely on anonymous symbol names