Move tests and start update_test.go

Put the update tests in a seperate file.
And add testing
Add Test for dynamic unpack failure