tests + moving shakes into lib

Signed-off-by: Chris Jones <chris@jonezy.org>