Added simple test to cover the behavior mentioned in the last commit.