test case from https://twitter.com/codazzo/status/405328423012163584