(refers #4) Tests for controller and PDF creation