added generic types test
few tests for functions