Fix article view test, remove some unused code from views