Added test for unconstrained optimization and also fixed bug in _check_imports method