Adding some unit testing, need to add the endpoint and resource