Move tests from fragment to plugin

Signed-off-by: Kirill Zotkin <kirillzotkin@gmail.com>