Add test for []byte(nil)

Also reordered the tests so that the general tests are on top