can you unit test this instead?