insert method updated to latest format

Hard errors are thrown, soft errors are noted in class member
updated tests for junit4