Added tests API funcs, tests and docs