adds tests to cover deploy_stage
introduces assert error that works with page decorator to check for error