updated working test