some jasmine test for optics.js