a few simple test cases for this would be great