im not sure if you can write unit test for this?