Implement tests for resource management

Issue #64

    Reviewed by Alexandre Rocha