Ensure file is a test file and adhere to Python syntax guide
Update snippets to suit my coding style (single quotes & 4 spaces)