Test case for http://stackoverflow.com/questions/25817210