rewrited exists method in proper way
added tests for 1000 value