changed dummy runtests to nosetests and fixed exception handling