Add tests to check that attribute shadowing works correctly

Just a basic property of js prototypes.. nothing special