Adding controller test

see #3