can u write a test for this?