Add tests

Signed-off-by: Nikita 'webconn' Maslov <wkernelteam@gmail.com>