created resultController test

changed db to public within ResultController