added functilal test
garden
added functional tests with permission