update test suite for addBefore issue fix