Add some tests

Add some tests. Run these tests with
./library-rest.pl test

Signed-off-by: Jeff Godin <jgodin@tadl.org>