add view test & fix