test angle function