added functional controller testing