Added test and testfile for issue #302