Fixed function end handling

For functions that don't end with a symbols we were not properly
marking the end of the function. The failing unit test was hidden
because of a duplicate name for the test. Fixing that duplication
uncovered the bug.

Appears to solve Issue #14.

Signed-off-by: Peter Portante <peter.portante@redhat.com>