fixed bug with insertion into breeding table + the test for it