added tests and passed options