Fixed some broken specs.

Had to put a bunch of code back into work_packages_controller that we though was not needed but actually it was for the non html responses.