Updated nested endpoint tests to cover more use cases. #40.