Added test for function inheritance.