Re-factor functional test code

1. Since they are version 1 tests, create new namespace v1.
2. Groups tests under new separate classes for each resource.

Change-Id: I4fc865438744bedf3a06b97a23826d220ef1a0d8
Merge "Re-factor functional test code"