Unit test REST framework