Make endpoint testable + junit tests for Kind endpoint