fixed bug in add tests