handle tests typos and logic errors are fixed

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>
generic handle traits

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>