Improve unit testing of xblock editing