Added unit tests for generic parameter type constraints.