Added test classes for scalar/vector-valued functions