Using bandit testing framework for tests now, fixed assert bugs that arose, and some time related stuff