Resource per metric (#224)

* add test for resource on per metric basis.

* add test for built-in metrics.

* add test for metric prefix.

* add test for non-builtin prefix with domain.
- also modify createFakeServer to return server and connectio

* execute conn.Close() first.
4 files changed