Court rejects bail plea of scientist in spy case