Adding tests for failure (throwing) on functions.