Create test_2.py

Modified task2_final.py for pytest