added test for options, fixed bug with options (on init and resize). moved tests to /tests