fixed tests, bugs in status codes merger