fixed error controller test
added tests folder