added tests for bug 303