Adds tests and exposes layers array

Wanted to use this module in a project, but needed access to the list of layers for testing purposes.

I went ahead and exposed the layers list on the handle object.

I also added test coverage to the module for the sake of confidence.