fixed discovering problem and tests
fixed discover value check