add view tests