added  test but it needs fixing