Tests, authorization, library usage

Addresses issue #4