Upgraded test.py

Added tests to test.py.