Update tests.py

Added test cases