Fixing test that was broken by the warns message throwed by Truffle

@enebo can you take a look? I did a dirty hack to fix the test broken by Truffle, but we still have other broken test which it's not related to truffle.