Item test, uninitialzed variable

Since i am quite a newb to python, i stated by adding a test :) more changes might come...