Fixed bank test to do threading properly (wait and notify)