wrote a test but it doesnt work