Add results endpoints and tests puls other fixes
Create better errors and cleanup tests