[aibt]
Fixed logic
Added testing scripts