Test for restarting service too
Added tests for library. Move library into module namespace