experimenting with declareResource() and getResource()
added test