Update test to use optimisation levels. Use -O0 for 'no optimisation' instead of -g
Add -O2 option, and add more optimisaton steps.