Added thorough tests for db insert_spin