Fixes #76
Actually this simply adds a test case to verify the correct behavior but the code was already in place.