updated
Added simple test.