convert changes from nose to pytest
remove old tests