added tests for basic view API

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>