add test for empty spaces, update example