Fixed tests for new error codes. Also implemented creation of an empty graph initially. It can be modified during runtime