fixed buggy test