add exp and tanh tests, fails for invalid flags