finally got a working test