[tests] porting os tests from cutes-js, fixing api

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