4 unit tests and modified ask.py with correct order of functions