added tests for elementupgrade and elementreplace
Merge pull request #2 from pennyfx/tests

added tests for elementupgrade and elementreplace