added unit tests to oil.py