add test cases for multiple refs
Merge pull request #3 from olivoil/feature/multiple-refs

support multiple `refs` in same view