Fix #504
Added new test case directory for github issues; added test case for #504
More selenium2 tests porting