Added additional method to interface.

Now checks if output has been spent first.

This closes #6
Could you please add a short description of what is this test doing?