#335 before-insert trigger added
#335 better tests for BALANCE()