Added code for test series in view.py