Add lib with functions for all resources plus a wimpy test