add insertBefore() & insertAfter() methods and tests