Insert now works, missing error handling
Tests overhauled