Spaces context tests

#4793