Almost Bug Free Testing Function