properly mocking out if nginx is running