Add tests for GCD/LCM