fixed issue #14

Fixed issue #14 and added testcase.
I have included fest-swing in the dependencies to support synchronous Swing testing.