tests elementary functions