Added function test
Fixed notice from Makasim