fixed tests bugs in release mode
added tests for timed_idle