Add cors filter
Add constructor
Add api tests
Remove unnecessary test