renamed view, added encryption test code