Adding rough draft of endpoint unittests