Allowing to set border state when reading grid from istream. Fixed test binary not compiling.