Add test cases for Duktape bugs

This makes it easy to verify when they've been fixed upstream.