Making sure that visiting an unpublished post throws a 404 status.

The use of @javascript on this test is because otherwise a status will not be thrown, instead the exception will be raised.