Hi,
These are not bugs. It is a similar topic as discussed in
this thread.
In project 8 your VM translator is supposed to generate the bootstrap code. According to the convention in the book, the bootstrap has to initialize SP (to 256) and generate a
call to Sys.init at the end of your bootstrap code. This will implicitly bring SP to 261. Your addition to the test file indicates that either you did not generate a bootstrap code at all, or your bootstrap does not initialize SP (and potentially your code just jumps to Sys.init instead of generating a call).
In the second example StaticsTest, the line set RAM[0] 256 is actually not wrong, but redundant. As described above it is your bootstrap code that should set SP properly at the beginning of the program, not the test script. You can actually remove this line and if your translator works properly, it should still pass the test. I assume the line is in the test script because of a copy&paste from project 7 (projects\07\MemoryAccess\StaticTest\). In project 7 this line is actually required since there is no bootstrap code yet. For project 8 the line should be removed, so if you want it can be considered as an error. In no case it should be replaced with your proposal.
Hope that helps