Added license to some files.
Added simple test for generic contracts (without generic methods).