remove unused throws_pred
remove unnecessary imports
removes complicated test logic