added tests and solidified joint request method