Adding first test case and making changes to resource.py