modified reset options and removed some unwanted code
added tests for reset option