updating tests and adding in spec test for view
adding in default for options so that no error is thown when no options are passed
adding in view.test.js and renameing file test.spec to index.spec